﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessPlatformTool.BusinessObjectStructure
{
    internal class ValidValues : List<IValidValue>, IValidValues, IList<IValidValue>
    {
        public IValidValue New()
        {
            IValidValue validvalue = new ValidValue();
            this.Add(validvalue);
            return validvalue;
        }
        public bool Contains(string name)
        {
            return this.Exists(item => item.ValidName == name);
        }
    }
}
